package com.xjm_cloud_admin.domain.vo.req;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import jakarta.validation.constraints.NotBlank;

/**
 * @author 浪漫写尽歌谱
 */
@Data
public class UserLoginReqVo {

    @NotBlank(message = "用户名不能为空")
    @Length(min = 2, max = 20, message = "用户名长度为2-20")
    private String username;

    @NotBlank(message = "密码不能为空")
    @Length(min = 5, max = 20, message = "密码长度为6-20")
    private String password;

}
